"use strict";
class BaseResponse {
    constructor(status, message) {
        this.code = 0;
        this.message = '';
        this.code = status;
        this.message = message;
    }
    toJson() {
        return JSON.stringify(this);
    }
}
class SuccessResponse extends BaseResponse {
    constructor(data, message) {
        super(200, message);
        this.data = data;
    }
}
class ErrorResponse extends BaseResponse {
    constructor(status, message) {
        super(status, message);
    }
}
module.exports = {
    BaseResponse: BaseResponse,
    SuccessResponse: SuccessResponse,
    ErrorResponse: ErrorResponse,
};
